package com.code.day10.test01;

public class Test01 {
    public static void main(String[] args) {
        Audi audi = new SmartAudi();
        test01(audi);

    }

    public static void test01(Audi audi){
        if (audi instanceof SmartAudi smartAudi){
            smartAudi.automaticDrive();
            smartAudi.automaticParking();
        }
    }
}
